package com.neuedu.jxcboot.entity;

import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.Data;

/**
 * <pre>
 * 编写数据实体类，与数据库表格形成对应关系 
 *   1.一个类对应一张表 
 *   2.类的属性对应表格的列,数据类型必须匹配
 *   3.@Data会自动生成set和get方法，toString方法等
 * </pre>
 * 
 * @author chens
 *
 */
@Data
public class User {

	private Integer userNo;
	private String userName;
	private String password;
	private String nickName;
	private String userPhone;
	private String userEmail;
	private String userImage;
	
	//@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd ",timezone = "GMT+8")
	private Date userDate;
	
	
	
	public User(Integer userNo) {
		super();
		this.userNo = userNo;
	}



	public User() {
		super();
	}
	
	

}
